
{%block content%}

{% if user.is_authenticated %}
Here you can browse your personal stock
    <table >
    
    <tr><th>StockName</th><th>StockCompanyName</th><th>condition</th></tr>

{% for p in perstock %}
<tr>
        <td>{{ p.stock.stock_name }}</td>
        <td>{{ p.stock.stock_companyname }}</td>
        
{% ifequal p.display '0' %}
<td>display</td>
{% else %}
<td>hide</td>
{%endifequal%}
        <td><a href="/personalstock/stockmanage/{{ p.stock.stock_name }}">manage</a></td>
         </tr>

{%endfor%}
    </table>
    {%endif%}

{%endblock%}